package com.my.ecommercesystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//用于转发请求
@Controller
public class
CommonController {
    @RequestMapping("/index")
    public String index() {
        //登录页面
        return "index";
    }

    @RequestMapping("/GoodsList")
    public String GoodList() {
        //登录页面
        return "GoodsList";
    }


    @RequestMapping("/goodsdetail")
    public String goodsdetail() {
        //详情页面
        return "goodsdetail";
    }

    @RequestMapping("/shopcar")
    public String shopcar() {
        //购物车页面
        return "shopcar";
    }

//    @RequestMapping("/UserOrder")
//    public String UserOrder() {
//        //登录页面
//        return "user_center_order";
//    }

    @RequestMapping("/login")
    public String login() {
        //登录页面
        return "login";
    }

    @RequestMapping("/register")
    public String register() {
        //登录页面
        return "register";
    }

}
